package com.rongc.client.freight.base.view.fragment;

import android.os.Bundle;
import android.widget.TextView;

import com.rongc.client.freight.R;
import com.rongc.client.freight.base.BaseFragment;
import com.rongc.client.freight.base.request.result.NullResult;

import java.util.List;

import butterknife.Bind;

/**
 * Created by Bruce on 2016/11/24.
 */
public class EmptyFragment extends BaseFragment {
    public String title;
    @Bind(R.id.tv_title)
    TextView mTvTitle;
    List<NullResult> datas;

    public static EmptyFragment getInstance(){
        /*if(fragment == null) fragment = new HomeFragment(orderType);
        return fragment;*/
        EmptyFragment fragment = new EmptyFragment();
        Bundle bdl = new Bundle();
//        bdl.putString("orderType", orderType);
        fragment.setArguments(bdl);
        return fragment;
    }

    public static EmptyFragment getInstance(String title){
        /*if(fragment == null) fragment = new HomeFragment(orderType);
        return fragment;*/
        EmptyFragment fragment = new EmptyFragment();
        Bundle bdl = new Bundle();
//        bdl.putString("orderType", orderType);
        fragment.setArguments(bdl);
        fragment.title = title;
        return fragment;
    }

    public void setDatas(List<NullResult> datas){
        this.datas = datas;
    }


    @Override
    public void initData() {
    }

    @Override
    public void initListener() {

    }


    @Override
    public void initView() {
        mTvTitle.setText(title);
    }


    @Override
    public int getLayoutId() {
        return R.layout.fragment_empty;
    }
}
